package com.example.wechatdaka.interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

//注册拦截器
@Configuration
public class WebAppConfig extends WebMvcConfigurerAdapter
{
//    @Override
//    public void addInterceptors(InterceptorRegistry registry)
//    {
//        //注册自己的拦截器并设置拦截的请求路径
//        registry.addInterceptor(new AuthInterceptor()).addPathPatterns("/**")
//                .excludePathPatterns("/")
//                .excludePathPatterns("/login/**")
//        .excludePathPatterns("/static/**");
//        super.addInterceptors(registry);
//    }
}